package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * APP用户转赠业务对象
 *
 * @author heise
 * @date 2025-06-20
 */

@Data
public class AppTransferBo {


    /**
     * 用户ID
     */
    @NotNull(message = "转赠用户ID不能为空", groups = {AddGroup.class})
    private Long userId;

    /**
     * 申请数量
     */
    @NotNull(message = "转赠金额不能为空", groups = {AddGroup.class})
    @Min(value = 5, message = "转赠数量不能小于5", groups = {AddGroup.class})
    private BigDecimal balance;


    private BigDecimal rate;
}
